package com.edu.zut.result;

/**
 * @Author 许文科
 * @Date 2023/1/12 19:15
 * @Description paperdetect-bcak
 * <p>
 * 返回结果封装类
 */
public class ResponseResult<T> {
    private String code;
    private String message;
    private T data;


    public ResponseResult() {
    }

    public ResponseResult(String code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    /**
     * 获取
     *
     * @return code
     */
    public String getCode() {
        return code;
    }

    /**
     * 设置
     *
     * @param code
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 获取
     *
     * @return message
     */
    public String getMessage() {
        return message;
    }

    /**
     * 设置
     *
     * @param message
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * 获取
     *
     * @return data
     */
    public T getData() {
        return data;
    }

    /**
     * 设置
     *
     * @param data
     */
    public void setData(T data) {
        this.data = data;
    }

    public String toString() {
        return "ResponseResult{code = " + code + ", message = " + message + ", data = " + data + "}";
    }
}
